package com.buka.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.buka.entity.Coupon;
import com.buka.request.NewUserCouponRequest;
import com.buka.util.JsonData;
import com.buka.vo.CouponVo;

/**
 * (Coupon)表服务接口
 *
 * @author makejava
 * @since 2025-08-06 14:58:24
 */
public interface CouponService extends IService<Coupon> {

    JsonData pageCoupon(Page page, CouponVo couponVo);


    JsonData claimCoupon(Long couponId) throws InterruptedException;

    //新用户注册 成功，直接领取新人券
    JsonData getNewUserCoupon(NewUserCouponRequest userCouponRequest);
}

